import { HttpService } from '@/utils/http';
import { API } from '@/utils/configs';
import { ReturnResult, SearchActionParams } from '@/types/http';
import { ISearchData } from '@/types/data';

class SearchHttpService extends HttpService {
  searchAction(data: SearchActionParams) {
    return this.axiosGet<SearchActionParams, ReturnResult<ISearchData>>({
      url: API.SEARCH_ACTION,
      data,
    });
  }
}

export const searchHttpService = new SearchHttpService();
